From: tsteven4 Date: Tue, 9 Feb 2016 14:24:38 +0000 (-0700) Subject: fix example shell script for googledir format, in both the pdf and html document. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~9^2~32^2~4 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9567e5e1fdad8e859f117bb1a146c5e83a66fc00;p=gpsbabel.git fix example shell script for googledir format, in both the pdf and html document. --- diff --git a/xmldoc/formats/googledir.xml b/xmldoc/formats/googledir.xml index c3952a916..c96e16dea 100644 --- a/xmldoc/formats/googledir.xml +++ b/xmldoc/formats/googledir.xml @@ -13,8 +13,9 @@ operating system, this shell script might be useful: #!/bin/sh FROM="233 S. Upper Wacker Dr, Chicago, IL" TO="1060 W. Addison St, Chicago, IL" -wget -O - "http://maps.googleapis.com/maps/api/directions/xml?origin=$FROM&destination=$TO&sensor=false" \ -2&>/dev/null >google_map.js -gpsbabel -i google -f google_map.js -o gpx -F google_map.gpx +URL="http://maps.googleapis.com/maps/api/directions/xml" +wget -O - "$URL?origin=$FROM&destination=$TO&sensor=false" \ +2>/dev/null >google_map.xml +gpsbabel -i googledir -f google_map.xml -o gpx -F google_map.gpx ]]>